//
//  FriendTableViewCell.m
//  FriendsList
//
//  Created by chen on 16/4/1.
//  Copyright © 2016年 zhangmc. All rights reserved.
//

#import "FriendTableViewCell.h"

@implementation FriendTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{

    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        
        self.nameLabel = [[UILabel alloc] initWithFrame:CGRectZero];
        
        [self addSubview:self.nameLabel];
        
        self.ageLabel = [[UILabel alloc] initWithFrame:CGRectZero];
        
        [self addSubview:self.ageLabel];
    }
    
    return self;
}

- (void)layoutSubviews
{

    [super layoutSubviews];
    
    self.nameLabel.frame = CGRectMake(10, 10, self.frame.size.width, 30);
    
    self.ageLabel.frame = CGRectMake(10, 50, self.frame.size.width, 30);

}
@end
